package cn.springbook.cim.domain.common;

import java.io.Serializable;
import java.util.Map;

public class AjaxJson implements Serializable {

	private static final long serialVersionUID = 1L;

	// 返回状态码
	private int code;

	// 返回提示信息
	private String message = null;

	// 返回实体
	private Object obj = null;

	//
	private Map<String, Object> attributes;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	@Override
	public String toString() {
		return "AjaxJson [code=" + code + ", message=" + message + ", obj=" + obj + ", attributes=" + attributes + "]";
	}

}
